package com.tg.paw.common.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Rubble
 * @date 2020/10/28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("登录用户")
public class User {

    @ApiModelProperty("用户名id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

}
